package com.inibb.app.po.security;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.inibb.app.po.IdEntity;




@Entity
@Table(name = "AUTHORITIES")
public class Authority extends IdEntity {

	private String name;

	private String displayName;
	
	private String displayNameKey;
	
	private String module;
	
	private String subModule;
	
	@Column( name="MODULE", length=20 )
	public String getModule() {
		return module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	@Column( name="SUB_MODULE", length=20 )
	public String getSubModule() {
		return subModule;
	}

	public void setSubModule(String subModule) {
		this.subModule = subModule;
	}

	@Column( name="NAME", length=20 )
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DISPLAY_NAME", length=20)
	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	
	@Column(name = "DISPLAY_NAME_KEY", length=50)
	public String getDisplayNameKey() {
		return displayNameKey;
	}

	public void setDisplayNameKey(String displayNameKey) {
		this.displayNameKey = displayNameKey;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
